package proxypattern;

public class RealImage implements Image {
    private String fileName;

    public RealImage(final String name) {
        this.fileName = name;
        loadFromDisk(name);
    }

    @Override
    public void display() {
        System.out.println("displaying" + fileName);
    }

    private void loadFromDisk(final String name) {
        System.out.println("loading"+name);
    }
}
